package chapter06;

public class Day8 {
    public static void main(String[] args) {
        int i = 100;

        while (i<=999){
            int ge = i%10;
            int shi = i%100/10;
            int bai = i/100;
            if (i==ge*ge*ge+shi*shi*shi+bai*bai*bai){
                System.out.println(i);
            }
            i++;
        }
    }
}
